<%- include header %>
	<form action="<%= typeof post != 'undefined' ? '/posts/'+post._id : '/posts' %>" method="POST">
		<% if(typeof post != 'undefined'){ %>
			<input type="hidden" name="_method" value="PUT" >
		<% } %>
		标题：<br />
			 <input type="text" name="title" value="<%= typeof post != 'undefined' ? post.title : '' %>" <%= typeof post != 'undefined' ? disabled="disabled" : '' %>  /><br/><br>
		标签：<br />
			 <input type="text" name="tag1" value="<%= typeof post != 'undefined' ? post.tags[0] : '' %>" <%= typeof post != 'undefined' ? disabled="disabled" : '' %> />  
			 <input type="text" name="tag2" value="<%= typeof post != 'undefined' ? post.tags[1] : '' %>" <%= typeof post != 'undefined' ? disabled="disabled" : '' %> />  
			 <input type="text" name="tag3" value="<%= typeof post != 'undefined' ? post.tags[2] : '' %>" <%= typeof post != 'undefined' ? disabled="disabled" : '' %> /><br/><br>
		正文：<br />
			 <textarea name="content" rows="20" cols="100"><%= typeof post != 'undefined' ? post.content : '' %></textarea><br />
		     <input type="submit" value="发表" />
	</form>
<%- include footer %>